package com.hzw.subject.common.enums;

import lombok.Getter;

@Getter
public enum CategoryTypeEnum {
    PRIMARY(1,"岗位大类"),
    SECOND(2,"二级分类"),
    ;
    private int code;
    public String desc;
    CategoryTypeEnum(int code, String desc) { 
        this.code=code;
        this.desc=desc;
    }
    public static CategoryTypeEnum getByCode(int codeVal){
        for(CategoryTypeEnum isdeletedflagenum: CategoryTypeEnum.values()){
            if(isdeletedflagenum.code==codeVal){
                return isdeletedflagenum;
            }
        }
        return null;
    }
}
